package org.bhf.json;

/**
 * Copyright (c) 2007, Blue Hole Software. All rights reserved.
 * Code licensed under the Apache 2.0 License:
 * http://www.apache.org/licenses/
 */

/**
 * Syntax error during parsing.
 */
public class SyntaxError extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    /**
     *
     * @exclude
     */
    public SyntaxError( final String message, final JSONTokenizer tokens )
    {
        super( message + " " + tokens.getDiagnosticContext() );
    }
}
